//
//  IGAddUpDateAddressApi.m
//  jingdongfang
//
//  Created by MTiMac02 on 2017/9/13.
//  Copyright © 2017年 LJL. All rights reserved.
//

#import "IGAddAddressApi.h"

@implementation IGAddAddressApi
-(id)initWithConsignee:(NSString *)consignee phone:(NSString *)phone region:(NSString *)region detail:(NSString *)detail{
    self= [super init];
    if (self) {
        _consignee=consignee;
        _phone=phone;
        _region=region;
        _detail=detail;
    }
    return self;
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (NSString *)requestUrl {
    return @"works/address!addAddress.action";
}

- (id)requestArgument {
            return @{
                     @"uId":[IGUser getUid],
                     @"consignee": _consignee,
                     @"phone": _phone,
                     @"region": _region,
                     @"detail": _detail
                     };
}

- (BOOL)isNeedHub {
    return NO;
}

//- (NSString *)AddressRequestUrl {
//        case IGAddUpDateAddressTypeAdd:
//            return @"works/address!addAddress.action";
//            break;
//        case IGAddUpDateAddressTypeUpDate:
//            return @"works/works! updateAddress.action";
//            break;
//            
//        default:
//            break;
//    }
//}

@end
@implementation IGAddAddressModel

@end
@implementation IGAddAddressResp

@end
